


    import * as React from 'react';
    import * as ReactDOM from 'react-dom';
    /*验证插件*/
    var VALIDE = React.createClass({
        render: function () {
            var message = this.props.errorMessage;
            if (message && typeof(message) == "string") {
                return (
                    <div className="form-error">{this.props.errorMessage}</div>
                )
            } else {
                return (
                    <div className="form-error hide"></div>
                )

            }

        }
    })


    module.exports =  {
        VALIDE: VALIDE
    }
